$(document).ready(function(){ $.formValidator.initConfig({validatorgroup:"signup",onError:function(){}});$("#txtUserName").formValidator({validatorgroup:"signup",
onempty:"",onshow:"",
onfocus:"请填写有效的电子邮件，便于找回密码",oncorrect:"&nbsp;",
tipid:"txtUserNameTip",defaultvalue:""})
.inputValidator({min:"1",max:"50",onerror:"您填写的邮箱不正确，请重新填写正确邮箱格式：abc@163.com"})
;$("#txtDomain").formValidator({validatorgroup:"signup",
onempty:"",onshow:"",
onfocus:"请填写有效的电子邮件，便于找回密码",oncorrect:"&nbsp;",
tipid:"txtUserNameTip",defaultvalue:""})
.inputValidator({min:"1",max:"50",onerror:"您填写的邮箱不正确，请重新填写正确邮箱格式：abc@163.com"})
;$("#txtPassword").formValidator({validatorgroup:"signup",
onempty:"",onshow:"",
onfocus:"使用6-20个字母或数字，不能使用中文，英文字母注意区分大小",oncorrect:"&nbsp;",
tipid:"txtPasswordTip",defaultvalue:""})
.inputValidator({min:"6",max:"20",onerror:"使用6-20个字母或数字，不能使用中文，英文字母注意区分大小写"})
;$("#txtRePassword").formValidator({validatorgroup:"signup",
onempty:"",onshow:"",
onfocus:"请再次输入密码，须与上次相同",oncorrect:"&nbsp;",
tipid:"txtRePasswordTip",defaultvalue:""})
.inputValidator({min:"6",max:"20",onerror:"请再次输入密码，须与上次相同"})
.compareValidator({desid:"txtPassword",operateor:"=",datatype:"string",onerror:"您两次输入的密码不一致，请重新填写。"})
;$("#txtFirstName").formValidator({validatorgroup:"signup",
onempty:"",onshow:"",
onfocus:"请填写真实的姓名，有助于被其他用户找到",oncorrect:"&nbsp;",
tipid:"txtNameTip",defaultvalue:""})
.inputValidator({min:"1",max:"4",onerror:""})
;$("#txtLastName").formValidator({validatorgroup:"signup",
onempty:"",onshow:"",
onfocus:"请填写真实的姓名，有助于被其他用户找到",oncorrect:"&nbsp;",
tipid:"txtNameTip",defaultvalue:""})
.inputValidator({min:"1",max:"4",onerror:""})
;$("#txtCompanyName").formValidator({validatorgroup:"signup",
onempty:"",onshow:"",
onfocus:"请填写真实的公司名",oncorrect:"&nbsp;",
tipid:"txtCompanyNameTip",defaultvalue:""})
.inputValidator({min:"1",max:"60",onerror:""})
;$("#txtJobTitle").formValidator({validatorgroup:"signup",
onempty:"",onshow:"",
onfocus:"请填写您的职位",oncorrect:"&nbsp;",
tipid:"txtJobTitleTip",defaultvalue:""})
.inputValidator({min:"1",max:"20",onerror:""})
;$("#txtCity").formValidator({validatorgroup:"signup",
onempty:"",onshow:"",
onfocus:"请选择常住地",oncorrect:"&nbsp;",
tipid:"txtCityTip",defaultvalue:""})
.inputValidator({min:"1",max:"20",onerror:"请选择常住地"})
;$("#txtVerifyCode").formValidator({validatorgroup:"signup",
onempty:"",onshow:"",
onfocus:"请输入左侧图片中4位验证码",oncorrect:"&nbsp;",
tipid:"txtVerifyCodeTip",defaultvalue:""})
.inputValidator({min:"1",max:"4",onerror:""})
;$("#txtAreaNum").formValidator({validatorgroup:"signup",
onempty:"",onshow:"",
onfocus:"请填写您的区号，我们不会公开您的联系方式",oncorrect:"&nbsp;",
tipid:"txtPhoneTip",defaultvalue:""})
.inputValidator({min:"1",max:"4",onerror:"此项为必填项"})
.regexValidator({regexp:"^[0-9]*$",param:"",datatype:"",onerror:"你输入的电话号码有误，请重新输入"})
;$("#txtPhone").formValidator({validatorgroup:"signup",
onempty:"",onshow:"",
onfocus:"请填写您的联系电话，我们不会公开您的联系方式",oncorrect:"&nbsp;",
tipid:"txtPhoneTip",defaultvalue:""})
.inputValidator({min:"1",max:"11",onerror:"此项为必填项"})
.regexValidator({regexp:"^[0-9]*$",param:"",datatype:"",onerror:"你输入的电话号码有误，请重新输入"})
;});